{% block doc %}
<!DOCTYPE html>
<html lang="zh-CN">
{% block html %}

<head>
    {% block head %}
    <title>{% block title %}Base{% endblock title %}</title>

    {% block metas %}
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    {% endblock metas %}

    {% block styles %}
    <link rel="shortcut icon" type="image/x-icon" href="{{ url_for('static', filename='image/favicon.png') }}">
    <link href="{{ url_for('static', filename='twitter-bootstrap/3.3.7/css/bootstrap.min.css') }}" rel="stylesheet">
    <link href="{{ url_for('static', filename='twitter-bootstrap/3.3.7/css/bootstrap-theme.min.css') }}"
        rel="stylesheet">
    <link href="{{ url_for('static', filename='bootstrap-select/1.13.1/css/bootstrap-select.min.css') }}"
        rel="stylesheet">
    <link href="{{ url_for('static', filename='bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css') }}"
        rel="stylesheet">
    <link href="{{ url_for('static', filename='bootstrap-datepicker/1.8.0/css/bootstrap-datepicker.min.css') }}"
        rel="stylesheet">
    <link href="{{ url_for('static', filename='datatables/datatables.min.css') }}" rel="stylesheet">
    <link href="{{ url_for('static', filename='datatables/jquery.dataTables.min.css') }}" rel="stylesheet">
    <link href="{{ url_for('static', filename='datatables/buttons.dataTables.min.css') }}" rel="stylesheet">
    <link href="{{ url_for('static', filename='fullcalendar/3.9.0/fullcalendar.min.css') }}" rel="stylesheet">

    <style>
        body {
            padding-top: 100px;
        }
    </style>

    {% endblock styles %}
    <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询（media queries）功能 -->
    <!-- 警告：通过 file:// 协议（就是直接将 html 页面拖拽到浏览器中）访问页面时 Respond.js 不起作用 -->
    <!--[if lt IE 9]>
        <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
        <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <![endif]-->
    {% endblock head %}
</head>
<body{% block body_attribs %}{% endblock body_attribs %}>
    {% block body %}
    {% block navbar %}
    <nav class="navbar navbar-inverse navbar-fixed-top">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                    aria-expanded="false" aria-controls="navbar">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="{{ url_for('bp_user.index') }}">
                    <span class="glyphicon glyphicon-home" aria-hidden="true"></span>
                    {% block user %}
                    {{ current_user.name }}
                    {% endblock user %}
                </a>
            </div>
            <div id="navbar" class="navbar-collapse collapse" aria-expanded="false" style="height: 1px;">
                <ul class="nav navbar-nav navbar-right">
                    <!-- <li><a href="{{ url_for('springfestival2020') }}">2020春节请假</a></li> -->

                    {% if current_user.is_active %}
                    {% if current_user.admin %}
                    <li><a href="{{ url_for('bp_admin.admin_users') }}">用户管理</a></li>
                    <li><a href="{{ url_for('bp_admin.holidays') }}">假日管理</a></li>
                    <li><a href="{{ url_for('bp_admin.admin_jobnumbers') }}">工作令号管理</a></li>
                    <li><a href="{{ url_for('bp_admin.admin_categories') }}">大类管理</a></li>
                    <li><a href="{{ url_for('bp_admin.admin_subcategories') }}">分类管理</a></li>
                    <li><a href="{{ url_for('bp_admin.admin_tasks') }}">所有任务列表</a></li>
                    {% endif %}
                    {% if not current_user.admin %}
                    <li><a href="{{ url_for('bp_user.index') }}">我的日历</a></li>
                    {% endif %}
                    <li><a href="{{ url_for('bp_assess.list_department_org') }}">组织架构</a></li>
                    <li><a href="{{ url_for('bp_assess.list_projects') }}">项目列表</a></li>
                    <li><a href="{{ url_for('bp_assess.list_users') }}">用户列表</a></li>
                    <li><a href="{{ url_for('bp_assess.score_list_this_month') }}">考核汇总</a></li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                            aria-expanded="false"> <span class="glyphicon glyphicon-user" aria-hidden="true"></span></a>
                        <ul class="dropdown-menu">

                            <li><a href="{{ url_for('bp_assess.score') }}">月份考核</a></li>
                            <li><a href="{{ url_for('bp_user.tasks') }}">日历明细</a></li>
                            <li><a href="{{ url_for('bp_partner.list_users') }}">用户负荷</a></li>

                            <li>
                                <a href="{{ url_for('bp_partner.receive', user_id=current_user.id ) }}">收到任务</a>
                            </li>
                            <li>
                                <a href="{{ url_for('bp_partner.send', user_id=current_user.id ) }}">发出任务</a>
                            </li>
                            <li><a href="{{ url_for('bp_user.subcategories') }}">分类明细</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a href="{{ url_for('bp_todo.index') }}">Todo</a></li>
                            <li><a href="{{ url_for('bp_todo.list_trash') }}">Todo回收站</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a href="{{ url_for('bp_user.setting') }}">修改密码</a></li>
                            <li><a href="{{ url_for('bp_user.logout') }}">切换用户</a></li>
                        </ul>
                    </li>
                    {% else %}
                    <li><a href="{{ url_for('login') }}">登陆</a></li>
                    {% endif %}
                </ul>
            </div>
        </div>
    </nav>
    {% endblock navbar %}
    {% block content %}
    {% endblock content %}

    {% block scripts %}
    <script src="{{ url_for('static', filename='jquery/3.3.1/jquery.min.js')}}"></script>
    <script src="{{ url_for('static', filename='twitter-bootstrap/3.3.7/js/bootstrap.min.js')}}"></script>
    <script src="{{ url_for('static', filename='bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js')}}"></script>
    <script src="{{ url_for('static', filename='bootstrap-select/1.13.1/js/bootstrap-select.min.js')}}"></script>
    <script src="{{ url_for('static', filename='bootstrap-datepicker/1.8.0/js/bootstrap-datepicker.min.js')}}"></script>
    <script src="{{ url_for('static', filename='jscolor/2.0.4/jscolor.min.js')}}"></script>
    <script src="{{ url_for('static', filename='datatables/datatables.min.js') }}"></script>
    <script src="{{ url_for('static', filename='datatables/jquery.dataTables.min.js') }}"></script>
    <script src="{{ url_for('static', filename='datatables/dataTables.buttons.min.js') }}"></script>
    <script src="{{ url_for('static', filename='datatables/buttons.flash.min.js') }}"></script>
    <script src="{{ url_for('static', filename='datatables/jszip.min.js') }}"></script>
    <script src="{{ url_for('static', filename='datatables/pdfmake.min.js') }}"></script>
    <script src="{{ url_for('static', filename='datatables/vfs_fonts.js') }}"></script>
    <script src="{{ url_for('static', filename='datatables/buttons.html5.min.js') }}"></script>
    <script src="{{ url_for('static', filename='datatables/buttons.print.min.js') }}"></script>
    <script src="{{ url_for('static', filename='bootstrap-validator/0.5.3/js/bootstrapValidator.min.js') }}"></script>
    <script src="{{ url_for('static', filename='moment.js/2.22.1/moment.min.js') }}"></script>
    <script src="{{ url_for('static', filename='fullcalendar/3.9.0/fullcalendar.min.js') }}"></script>
    <script src="{{ url_for('static', filename='fullcalendar/3.9.0/locale-all.js') }}"></script>
    <script src="{{ url_for('static', filename='plotly.js/1.45.0/plotly.min.js') }}"></script>
    <script src="{{ url_for('static', filename='d3/3.5.6/d3.min.js') }}"></script>



    {%- endblock scripts %}
    {%- endblock body %}
    </body>
    {% endblock html %}

</html>
{% endblock doc %}